package userinterface;

import java.awt.Color;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

import util.Constants;

public class AppWindow extends JFrame {
	private static final long serialVersionUID = 6873149159697574779L;
	
	public AppWindow() {
		setTitle(Constants.INIT_TITLE);
		setIconImage(Constants.INIT_IMG);
		setSize(800, 600);
		setLocationRelativeTo(null);
		setLayout(null);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		
		add(setInitialMask());
	}
	
	public void visible(boolean b) {
		setVisible(b);
	}
	
	private JPanel setInitialMask() {
		JPanel panel = new JPanel();
		panel.setLayout(null);
		panel.setSize(400,300);
		panel.setBackground(Color.green);
		panel.setForeground(Color.blue);
		
		JLabel label = new JLabel("Test");
		label.setBounds(0,0,300,20);
		panel.add(label);
		
		return panel;
	}
}